<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\Photo */

$this->title                   = $model->id;
$this->params['breadcrumbs'][] = [ 'label' => 'Photos', 'url' => [ 'index' ] ];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="photo-view">

    <h1><?= Html::encode( $this->title ) ?></h1>

    <p>
        <!--        --><? //= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
		<?= Html::a( '删除', [ 'delete', 'id' => $model->id ], [
			'class' => 'btn btn-danger',
			'data'  => [
				'confirm' => '你确定要删除这条内容?',
				'method'  => 'post',
			],
		] ) ?>
    </p>

	<?= DetailView::widget( [
		'model'      => $model,
		'attributes' => [
			'id',
			'uid',
			'brife',
//			'img',
			[
				'attribute' => 'img',
				'format'     => 'raw',
				'value'     => "<img style='max-width: 200px;max-height: 150px' src='{$model->imgUrl}'>",


			],
			'iso',
			[
				'attribute'=>'status',
                'value'=>$model->status0->name,
			],
			'type',
			'make',
			'lens',
			'model',
			'exposer',
			'fnumber',
			'flength',
			'created_at',
			'updated_at',
		],
	] ) ?>

</div>
